package Commands;

/**
 * Created with IntelliJ IDEA.
 * Author: Henrique Alberto Rusa and Danilo Barbosa Porto
 * Date: 04/12/13
 *
 * The InstructionListener Interface abstract the concept of a class that will listen to instruction sent remotely from
 * a unknown node.
 * It just implements the method called when a instruction was received, the hasNewCommand().
 * The instruction here is considered a command, so it is a abstraction that implements the Command Interface.
 */
public interface InstructionListener {

    /*
     * Method implemented so when any instruction is received the listener will do anything it wants with the action
     */
    public void hasNewInstruction(Command onEvent);
}
